using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Mvc.Ajax;
using Shsc.Net.FrameWork.Dto.Home;
using Shsc.Net.FrameWork.Common.Util;
using Seasar.Framework.Container.Factory;
using Shsc.Net.FrameWork.Service.Home;
using System.Reflection;
using Shsc.Net.FrameWork.Common.Validator;
using Shsc.Net.FrameWork.Common.SysException;

namespace Shsc.Net.FrameWork.Web.Controllers.Home
{
    public class HomeController : BaseController
    {
        public ILoginService LoginService
        {
            get { return (ILoginService)SingletonS2ContainerFactory.Container.GetComponent(typeof(ILoginService)); }
        }

        //
        // GET: /Login/

        public ActionResult Login(LoginDto dto)
        {
            ViewData["LoginInfo"] = dto;
            return View();
        }


        public ActionResult DoLogin(LoginDto dto)
        {
            throw new BusinessException("TEST");

            ViewData["LoginInfo"] = dto;
            return View("Login");
        }
    }
}
